package com.ruoyi.purchase.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 分组用户关联对象 sys_group_user
 *
 * @author ruoyi
 * @date 2025-08-23
 */
public class SysGroupUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** group_id */
    private Long groupId;

    /** user_id */
    private Long userId;

    /** group_name */
    @Excel(name = "group_name")
    private String groupName;

    /** user_name */
    @Excel(name = "user_name")
    private String userName;

    public void setGroupId(Long groupId)
    {
        this.groupId = groupId;
    }

    public Long getGroupId()
    {
        return groupId;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setGroupName(String groupName)
    {
        this.groupName = groupName;
    }

    public String getGroupName()
    {
        return groupName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("groupId", getGroupId())
                .append("userId", getUserId())
                .append("groupName", getGroupName())
                .append("userName", getUserName())
                .toString();
    }
}
